package com.gimi.cloud.bbp.manage.consumer.service.log.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gimi.cloud.bbp.common.utils.JsonUtil;
import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.log.LogJPushDTO;
import com.gimi.cloud.bbp.manage.consumer.feign.log.LogJPushFeignService;
import com.gimi.cloud.bbp.manage.consumer.service.log.LogJPushService;

@Service
public class LogJPushServiceImpl implements LogJPushService {
	
	@Autowired private LogJPushFeignService feignService;

	@Override
	public Response getLogJPushList(String requestData, HttpServletRequest request, HttpServletResponse response) {
		LogJPushDTO dto = JsonUtil.jsonToBean(requestData, LogJPushDTO.class);
		return feignService.getLogJPushList(dto);
	}

}